package com.openbravo.bean.crm;

import java.util.Date;

import cn.ekuma.data.dao.bean.I_AutoGeneratorStringKey;
import cn.ekuma.data.dao.bean.I_ModifiedLogBean;

public class CustomerStoreValueCard  implements I_AutoGeneratorStringKey, I_ModifiedLogBean<String> {
	
	   
	
	    /**
	 * 
	 */
	private static final long serialVersionUID = 511074706669865029L;
		private String id;
		private Date lastModified;
		
		private String customerId;
		private Date createDate;
		private int state=0;
		private Date validityDate;
		private double curLimit=0;//当前额度
		private double backLimit=0;//留底额度
		private String memo;
		private String password;
		private double totalRecharge=0;//总冲值额
		private double totalConsumer=0;//总销费额
		
		
		public final static int STATE_Unknown=0;//未启用，如批开未登记
		public final static int STATE_UseAble=1;//有效
		public final static int STATE_Back=2;//以退
		public final static int STATE_Invalid=3;//失效
		public final static int STATE_Loss=4;//挂失
		
		public String cardNum;//卡号

		public String getCustomerId() {
			return customerId;
		}

		public void setCustomerId(String customerId) {
			this.customerId = customerId;
		}

		public Date getCreateDate() {
			return createDate;
		}

		public void setCreateDate(Date createDate) {
			this.createDate = createDate;
		}

		public int getState() {
			return state;
		}

		public void setState(int state) {
			this.state = state;
		}

		public Date getValidityDate() {
			return validityDate;
		}

		public void setValidityDate(Date validityDate) {
			this.validityDate = validityDate;
		}

		public double getCurLimit() {
			return curLimit;
		}

		public void setCurLimit(double curLimit) {
			this.curLimit = curLimit;
		}

		public double getBackLimit() {
			return backLimit;
		}

		public void setBackLimit(double backLimit) {
			this.backLimit = backLimit;
		}

		public String getMemo() {
			return memo;
		}

		public void setMemo(String memo) {
			this.memo = memo;
		}

		public String getPassword() {
			return password;
		}

		public void setPassword(String password) {
			this.password = password;
		}

		public double getTotalRecharge() {
			return totalRecharge;
		}

		public void setTotalRecharge(double totalRecharge) {
			this.totalRecharge = totalRecharge;
		}

		public double getTotalConsumer() {
			return totalConsumer;
		}

		public void setTotalConsumer(double totalConsumer) {
			this.totalConsumer = totalConsumer;
		}

		public void setId(String id) {
			this.id = id;
		}

		public String getKey() {
	        return id;
	    }

	    public String getId() {
	        return id;
	    }
	    
	    public Date getLastModified() {
	        return lastModified;
	    }

	    public void setLastModified(Date lastModified) {
	        this.lastModified = lastModified;
	    }

	    public void setKey(String key) {
	        this.id=key;
	    }

		public String getCardNum() {
			return cardNum;
		}

		public void setCardNum(String cardNum) {
			this.cardNum = cardNum;
		}

	    
	    
}
